package com.zdkj.subway.support.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 发票信息表
 *
 * @author cui_com
 * @date 2020-01-08 17:13:42
 */
@Data
@TableName("sw_param_receipt")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "发票信息表(名称及使用类型)")
public class SwParamReceipt extends Model<SwParamReceipt> {
    private static final long serialVersionUID = 1L;

    /**
     * 唯一标识
     */
    @TableId
    @ApiModelProperty(value = "唯一标识")
    private Integer id;
    /**
     * 发票类型-关联字典
     */
    @ApiModelProperty(value = "发票类型")
    private String refDictReceiptType;
    /**
     * 发票ID
     */
    @ApiModelProperty(value = "发票ID")
    private String code;
    /**
     * 发票名称
     */
    @ApiModelProperty(value = "发票名称")
    private String name;

    /**
     * 状态1：启用  0：禁用
     */
    @ApiModelProperty(value = "状态1：启用  0：禁用")
    @TableField(value = "IS_ACTIVE")
    private Boolean active;

    /**
     * 发票面额
     */
    @ApiModelProperty(value = "发票面额")
    private BigDecimal priceArea;
    /**
     * 创建人ID
     */
    @ApiModelProperty(value = "创建人ID")
    private Integer creatorId;
    /**
     * 创建人名称
     */
    @ApiModelProperty(value = "创建人名称")
    private String creatorName;
    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
    /**
     * 部门ID
     */
    @ApiModelProperty(value = "部门ID")
    private Integer deptId;
    /**
     * 是否删除  1：已删除  0：正常
     */
    @TableLogic
    private String delFlag;
}
